Next: 4.6.9 Libraries Up: 4.6 The PIC16 port Previous: 4.6.7 Header Files and Contents Index

##
4.6.8 Header Files

There is one main header file that can be included to the source files using the pic16 port. That file is the pic18fregs.h. This header file contains the definitions for the processor special registers, so it is necessary if the source accesses them. It can be included by adding the following line in the beginning of the file:

  #include <pic18fregs.h>

The specific microcontroller is selected within the pic18fregs.h automatically, so the same source can be used with a variety of devices.